package com.cgbl.cg.vm.home

import android.app.Application
import com.robot.base.base.vm.GLBaseViewModel
import me.goldze.mvvmhabit.binding.command.BindingAction
import me.goldze.mvvmhabit.binding.command.BindingCommand
import me.goldze.mvvmhabit.bus.event.SingleLiveEvent

class HomeFollowViewModel(application: Application) : GLBaseViewModel(application) {
    val uc = UiChangeEvent()

    class UiChangeEvent {
        val visitData: SingleLiveEvent<ArrayList<String>> = SingleLiveEvent()
        val followData: SingleLiveEvent<ArrayList<String>> = SingleLiveEvent()
    }

    val toFollowCommand = BindingCommand<Any>(BindingAction {
        //跳转我的关注页面
    })

    fun initData() {
        uc.followData.postValue(arrayListOf("", "", "", ""))
        uc.visitData.postValue(arrayListOf("", "", "", ""))
    }
}